]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Accept either an icon name or a GIcon on PopupImageMenuItem
authorMario Sanchez Prada <mario@endlessm.com>
Mon, 8 May 2017 10:36:35 +0000 (11:36 +0100)
committerMario Sanchez Prada <mario@endlessm.com>
Tue, 9 May 2017 17:32:23 +0000 (18:32 +0100)
commit28ca96064bcb95fb3b3461f3eb9959c2aef7eee6
treef543403e120b6febc5d6bc9b339935cb6d83c668
parentbe95a63a03090cb62b928ffd58712221cedbde8a
popupMenu: Accept either an icon name or a GIcon on PopupImageMenuItem

Add an extra check to setIcon() so that either a GIcon or an string
with the icon's name is handlded, so that we can create menu items
in different ways (e.g. by passing a GIcon created from a resource).

https://bugzilla.gnome.org/show_bug.cgi?id=782166
js/ui/popupMenu.js